package com.ordersys.cloud.service;

import com.ordersys.cloud.entity.Product;

import java.util.List;

public interface ProductService {
    //增加
    public int addProduct(Product product);
    //删
    public int deleteProduct(Integer id);
    //改
    public int updateProduct(Product product);

    //查所有
    public List<Product> getProductAllList();
    //通过id查
    public Product getProductById(Integer id);

    public Integer reduceStock(Integer productId,Integer quantity);

}
